package com.byxy.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "user")
public class User implements Serializable {
	@Override
	public String toString() {
		return "User [id=" + id + ", login=" + login + ", name=" + name + ", pass=" + pass + ", sex=" + sex + ", phone="
				+ phone + ", email=" + email + "]";
	}

	@Id
	@GeneratedValue
	@Column(name = "id")
	private Integer id;
	@Column(length = 20)
	private String login;
	@Column(name = "name", length = 20)
	private String name;
	@Column(name = "pass", length = 20)
	private String pass;
	@Column(name = "sex", length = 20)
	private String sex;
	@Column(name = "phone", length = 20)
	private String phone;
	@Column(name = "email", length = 20)
	private String email;

	public String getLogin() {
		return login;
	}

	public void setLogin(String login) {
		this.login = login;
	}

	public String getPass() {
		return pass;
	}

	public void setPass(String pass) {
		this.pass = pass;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
